
    <!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="renderer" content="webkit|ie-comp|ie-stand" />
    <title>工作台 - 上海第一建筑师事务所 - Xcube</title>
	<script>
        var app_config = {app_base_url:"http://www.xcube.com.cn/",
            web_path:"http://www.xcube.com.cn/",
            file_path:"http://www.xcube.com.cn/xfile/"};
    </script>
	
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="renderer" content="webkit|ie-comp|ie-stand"/>
    
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

<link type="text/css" href="http://static.xcube.com.cn/css/common.css?v=20160106" rel="Stylesheet" />
<link type="text/css" href="http://static.xcube.com.cn/css/style.css?v=20160106" rel="Stylesheet" />
<link type="text/css" href="http://static.xcube.com.cn/css/style2.css?v=20160106" rel="Stylesheet" />
<link type="text/css" href='http://static.xcube.com.cn/css/fullcalendar.css?v=20160106' rel='stylesheet' />
<link type="text/css" href="http://static.xcube.com.cn/css/normalize.css?v=20160106" rel="Stylesheet"/>
<link type="text/css" href="http://static.xcube.com.cn/css/mcommon.css?v=20160106" rel="Stylesheet"/>
<link type="text/css" href="http://static.xcube.com.cn/css/project.css?v=20160106" rel="Stylesheet"/>
<link type="text/css" href="http://static.xcube.com.cn/css/dmuploader.css?v=20160106" rel="Stylesheet" />


<script type="text/javascript" src="http://static.xcube.com.cn/js/jquery-1.11.2.min.js?v=20160106"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/common.js?v=20160106"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/modal.js?v=20160106"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/aysu.js?v=20160106"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/fouce.js?v=20160106"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/info.js?v=20160106"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/outsalid_table.js?v=20160106"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/plugins/calendar/WdatePicker.js?v=20160106"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/plugins/validation/jquery.validate.js?v=20160106"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/plugins/validation/validate_zh.js?v=20160106"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/plugins/cookie/jquery.cookie.js?v=20160106"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/plugins/highlight/jquery.textSearch-1.0.js?v=20160106"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/stringFormat.js?v=20160106"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/plugins/communication/cust.communication.js?v=20160106"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/jquery.form.js?v=20160106"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/picture.js?v=20160106"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/customer.js?v=20160106"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/md5.js?v=20160106"></script>
<script src="http://static.xcube.com.cn/js/modernizr-2.6.2.min.js?v=20160106"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/jquery-ui.js?v=20160106"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/dmuploader.min.js?v=20160106"></script>

    <link type="text/css" href="http://static.xcube.com.cn/css/project.css" rel="Stylesheet" />
<style>
.cur-btn-not-add {
	padding: 0px 10px; 
	line-height:20px;
	vertical-align: middle; 
	border: 1px solid #6CBD7D; 
	border-radius: 10px;
	margin-right: 0px;
	margin-left:10px;}
.cur-btn-add {
	padding: 0px 10px; 
	line-height:20px;
	vertical-align: middle; 
	border: 1px solid #6CBD7D; 
	border-radius: 10px; 
	margin-right: 0px;
	margin-left:10px; 
	color: #ffffff; 
	background-color: #6CBD7D;}

.width_100{
    width: 100%;
}

.li_display_none{
    display: none;
}
</style>

    <link type="text/css" href="http://static.xcube.com.cn/css/header.css" rel="Stylesheet" />
    <link rel="shortcut icon" type="image/ico" href="http://static.xcube.com.cn/images/favicon.png" />
</head>
<body>

<div class="wrapBox">
    <!--left-->
<div class="leftSide">
    <!--logo-->
<div class="logoChose foldEve">
<div class="clickThis">
<h1 class="clearfix ">
<a href="http://www.xcube.com.cn/company/view/auth.action?orgId=5">
    <img id="main-logo" src="http://static.xcube.com.cn/images/td.jpg" alt="上海第一建筑师事务所" width="45px" height="45px" >
    </a>
    <span><div class="content-2line" id="main-name">上海第一建筑师事务所</div></span>
    </h1>
<div class="foldLogoList foldChild">
<ul id="orgList">
<li data-href="http://www.xcube.com.cn/user/panel/index.htm?orgId=21">
        <img src="http://www.xcube.com.cn//upload/2015/11/14/b25a78fa-919d-47ad-ab78-a172df17c768.JPG" >
    <span>道远工作室</span>
    </li>
<li data-href="http://www.xcube.com.cn/user/panel/index.htm?orgId=25">
    <img src="http://static.xcube.com.cn/images/td.jpg" >
    <span>一几工作室</span>
    </li>
</ul>
    <div class="creatTeam">

        <a href="javascript:;" class="active" data-toggle="modal" data-target="#addCompanyPanel" ><i></i>创建公司</a>
    </div>
</div>
</div>
</div>
    <!--nav-->
<ul class="navBar navBarScoll" id="navBlock">
                        <li class="icon1"><a href="http://www.xcube.com.cn/project/list.action?orgId=5"><i></i>项目</a></li>
                        <li class="icon2"><a href="http://www.xcube.com.cn/thread/list.action?orgId=5"><i></i>线索</a></li>
                        <li class="icon3"><a href="http://www.xcube.com.cn/opportunity/list.action?orgId=5"><i></i>机会</a></li>
                        <li class="icon4"><a href="http://www.xcube.com.cn/contract/5"><i></i>合同</a></li>
                        <li class="icon5"><a href="http://www.xcube.com.cn/customer/list.action?orgId=5"><i></i>客户</a></li>
                        <li class="icon6"><a href="http://www.xcube.com.cn/comset/addressbook.htm?orgId=5"><i></i>员工</a></li>
    </ul>
    <!-- menunav: -->
    <!--left bottom-->
    <div class="navFixedbom">
        <ul class="navBar">
            <li class="icon7"><a href="http://www.xcube.com.cn/daily/stat/member.htm"><i></i>统计</a></li>
            <li class="otherLi">
                <a href="http://www.xcube.com.cn/comset/index.htm" class="setIcon" title="公司设置"></a>
                <a href="http://wpa.qq.com/msgrd?v=3&uin=3288541955&site=qq&menu=yes" class="mesgIcon" title="在线QQ咨询"></a>
                <a href="javascript:;" data-toggle="modal" data-target="#helpPanel" class="unfoldIcon" title="下载产品手册"></a>
            </li>
        </ul>
        <div class="logobtm"><img src="http://static.xcube.com.cn/images/logo.png" alt="" width="106" height="25"></div>
    </div>
</div>
    <!--right-->
<div class="rightSide">
    <!--top-->
    <div class="headerNav">
        <!--search-->
    <!--setting-->
<div class="headerOrder">
<ul>
    <li class="desk"><a href="http://www.xcube.com.cn/user/panel/index.htm?orgId=5"><i></i>工作台</a></li>
    <li class="report"><a href="http://www.xcube.com.cn/report/index.html"><i></i>日报</a></li>
    <li class="calendar"><a href="http://www.xcube.com.cn/calendar/index.htm?category=myCalendar"><i></i>日历</a></li>
    <!--无未读消息-->
    <li id="noMessage" class="mesg">
        <a href="http://www.xcube.com.cn/sysmessage/list.action?type=1"><i></i></a>
    </li>
    <!--有未读消息-->
    <li id="haveMessage" class="mesg" style="display:none">
        <a href="http://www.xcube.com.cn/sysmessage/list.action?type=2" class="unread"><i></i>
            <em id="messageCount"></em>
        </a>
    </li>
<li class="perMesg foldEve">
<div class="clickThis">
<dl>
<dt>
        <img id="mainUserLogo" src="http://www.xcube.com.cn//upload/2015/10/23/d443f829-0ae4-47cc-b1e8-90c4515a7894.jpg" alt="" width="30" height="30">
    <span><label id="mainUserName">李知远</label><i></i></span>
</dt>
    <dd class="foldChild" style="width:100%">
        <a href="http://www.xcube.com.cn/user/loadedit.action?parm=info" class="setting"><i></i>个人设置</a>
        <a onclick="return logout();" href="http://www.xcube.com.cn/user/logout.action" class="exitLogin"><i></i>退出登录</a>
    </dd>
</dl>
</div>
</li>
</ul>
</div>
</div>
    <!--middle-->
    <div class="mainWrapBox">
        <div class="mainBox">
			
    <div class="html">
        <div class="dashboard-title">2016-08-30，星期二 一天的工作从Xcube开始……<span style="float:right;margin-right:20px;"><a data-toggle="modal" data-target="#addcusPanel" onclick="getPanel()" href="javascript:void(0);">添加面板</a></span></div>
        <div class="dashboard-shortcut">
            <p><span class="title">快捷操作</span>
                <a href="http://www.xcube.com.cn/report/index.html?param=userPanel" class="primarybtn btn-border-gray ml30">写日报</a>
                <a href="javascript:;" data-toggle="modal" data-target="#costPanel" class="primarybtn btn-border-gray ml30">记录支出</a>
                    <a href="http://www.xcube.com.cn/project/company/create.action?orgId=5" class="primarybtn btn-border-gray ml30" target="_blank">创建项目</a>
                    <a href="http://www.xcube.com.cn/thread/create.action?orgId=5" class="primarybtn btn-border-gray ml30" target="_blank">创建线索</a>
                    <a href="http://www.xcube.com.cn/opportunity/create.action?orgId=5" class="primarybtn btn-border-gray ml30" target="_blank">创建机会</a>
                    <a href="http://www.xcube.com.cn/contract/create/5" class="primarybtn btn-border-gray ml30" target="_blank" target="_blank">创建合同</a>
                    <a href="http://www.xcube.com.cn/customer/list.action?orgId=5&flag=1" class="primarybtn btn-border-gray ml30" target="_blank">添加客户</a>

            </p>
            <p><span class="title">快速链接</span>
		                <a href="javascript:void(0)" id="k-s-l-j-1" data-target="#modalPanel_1" data-url="http://www.xcube.com.cn/user/panel/costdetail.htm?id=1" data-toggle="quick_link" class="ml30 shortcut-link" >• 费用支出明细</a>
		                <a href="javascript:void(0)" id="k-s-l-j-2" data-target="#modalPanel_2" data-url="http://www.xcube.com.cn/user/panel/contract_invoice_detail.htm?id=2" data-toggle="quick_link" class="ml30 shortcut-link" >• 合同开票明细</a>
		                <a href="javascript:void(0)" id="k-s-l-j-7" data-target="#modalPanel_7" data-url="http://www.xcube.com.cn/user/panel/contract_payment_detail.htm?id=7" data-toggle="quick_link" class="ml30 shortcut-link" >• 合同回款明细</a>
		                <a href="javascript:void(0)" id="k-s-l-j-9" data-target="#modalPanel_9" data-url="http://www.xcube.com.cn/user/panel/contract_invoice_payment.htm?id=9" data-toggle="quick_link" class="ml30 shortcut-link" >• 开票与回款</a>
		                <a href="javascript:void(0)" id="k-s-l-j-19" data-target="#modalPanel_19" data-url="http://www.xcube.com.cn/user/panel/user_projects.htm?id=19" data-toggle="quick_link" class="ml30 shortcut-link" >• 员工项目总表</a>
		                <a href="javascript:void(0)" id="k-s-l-j-20" data-target="#modalPanel_20" data-url="http://www.xcube.com.cn/user/panel/balance_payment.htm?id=20" data-toggle="quick_link" class="ml30 shortcut-link" >• 项目收支总表</a>
            </p>
        </div>
        <div id="dashboard-link-container" class="dashboard-link-container" style="display: none">

        </div>
        <ul id="dashboard-panel-container" class="dashboard-panel-container clearfix">
		            <li data="15" id="li_15" associate_id="43" sort="1" large_url="" url="user/panel/oppstat.htm" class="li-sort">
		                <div class="panel-item" id="dataGrid_15">
		                    <div class="header">本月机会状态统计</div>
		                    <div class="body"></div>
		                </div>
		            </li>
		            <li data="11" id="li_11" associate_id="446" sort="2" large_url="" url="user/panel/latelyworking.htm" class="li-sort">
		                <div class="panel-item" id="dataGrid_11">
		                    <div class="header">最近正在做</div>
		                    <div class="body"></div>
		                </div>
		            </li>
		            <li data="16" id="li_16" associate_id="44" sort="3" large_url="" url="user/panel/threadstat.htm" class="li-sort">
		                <div class="panel-item" id="dataGrid_16">
		                    <div class="header">本月线索状态统计</div>
		                    <div class="body"></div>
		                </div>
		            </li>
		            <li data="10" id="li_10" associate_id="444" sort="4" large_url="" url="user/panel/contract_remind.htm" class="li-sort">
		                <div class="panel-item" id="dataGrid_10">
		                    <div class="header">合同计划回款到期提醒 </div>
		                    <div class="body"></div>
		                </div>
		            </li>
		            <li data="13" id="li_13" associate_id="447" sort="5" large_url="" url="user/panel/workhours.htm" class="li-sort">
		                <div class="panel-item" id="dataGrid_13">
		                    <div class="header">我的工时</div>
		                    <div class="body"></div>
		                </div>
		            </li>
		            <li data="17" id="li_17" associate_id="449" sort="6" large_url="user/panel/priority_task.htm" url="user/panel/priority_task_widght.htm" class="li-sort">
		                <div class="panel-item" id="dataGrid_17">
		                    <div class="header">项目里程碑任务</div>
		                    <div class="body"></div>
		                </div>
		            </li>
		            <li data="14" id="li_14" associate_id="448" sort="7" large_url="" url="user/panel/latestdynamic.htm" class="li-sort">
		                <div class="panel-item" id="dataGrid_14">
		                    <div class="header">最新动态</div>
		                    <div class="body"></div>
		                </div>
		            </li>
		            <li data="3" id="li_3" associate_id="1150" sort="8" large_url="" url="user/panel/monthcost.htm" class="li-sort">
		                <div class="panel-item" id="dataGrid_3">
		                    <div class="header">月度成本统计</div>
		                    <div class="body"></div>
		                </div>
		            </li>
		            <li data="4" id="li_4" associate_id="1151" sort="9" large_url="" url="user/panel/new_contracts.htm" class="li-sort">
		                <div class="panel-item" id="dataGrid_4">
		                    <div class="header">月度新增合同额 </div>
		                    <div class="body"></div>
		                </div>
		            </li>
		            <li data="6" id="li_6" associate_id="1152" sort="10" large_url="" url="user/panel/invoice_payment.htm" class="li-sort">
		                <div class="panel-item" id="dataGrid_6">
		                    <div class="header">月度开票与回款统计</div>
		                    <div class="body"></div>
		                </div>
		            </li>
		            <li data="5" id="li_5" associate_id="1953" sort="11" large_url="" url="user/panel/customer_contract.htm" class="li-sort">
		                <div class="panel-item" id="dataGrid_5">
		                    <div class="header">年度客户合同额排名</div>
		                    <div class="body"></div>
		                </div>
		            </li>
		            <li data="21" id="li_21" associate_id="1153" sort="12" large_url="user/panel/hours_and_task_modal.htm" url="user/panel/hours_and_task.htm" class="li-sort">
		                <div class="panel-item" id="dataGrid_21">
		                    <div class="header">员工工时与任务统计</div>
		                    <div class="body"></div>
		                </div>
		            </li>
		            <li data="18" id="li_18" associate_id="1539" sort="13" large_url="" url="user/panel/warning_project.htm" class="li-sort">
		                <div class="panel-item" id="dataGrid_18">
		                    <div class="header">预警项目列表</div>
		                    <div class="body"></div>
		                </div>
		            </li>
        </ul>
    </div>

        <div class="modal" id="modalPanel_1"></div>
        <div class="modal" id="modalPanel_2"></div>
        <div class="modal" id="modalPanel_7"></div>
        <div class="modal" id="modalPanel_9"></div>
        <div class="modal" id="modalPanel_19"></div>
        <div class="modal" id="modalPanel_20"></div>
<div class="modal" id="addcusPanel">
        <div data="check" class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <span class="modal-title ">选择面板</span>
                    <span class="modal-close " style=" margin-left:90%" title="关闭">&times;</span>
                </div>

                <div class="modal-body" id="dataGrid" style="height:350px;overflow-y:scroll;">
                				
                </div>
                <div class="modal-footer">
                <!--
                    <a class="btn modal-cancel">取消</a>
                -->
                    <a class="btn green" onclick="refulshPanel()">确定</a>
                </div>
                <div class="cl"></div>
            </div>
        </div>
    </div>
    <!-- 支出弹框 -->
    <div class="modal" id="costPanel">
        <form id="addOutComeForm">
            <div data="check" class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header ">
                        <span class="modal-title"><em>费用支出</em> </span>
                        <span class="modal-close " style=" margin-left:90%" title="关闭" onclick="cancelOutcome()">&times;</span>
                    </div>
                    <div class="clear"></div>
                    <div class="modal-body cost-modal" style="padding:15px">
                        <div class="cost-modal-info">
                            <ul >
                                <li class="pl10" style="text-align: left">
                                    <p class="cost-title">费用类型</p>
                                    <div style="position: relative;">
                                        <input type="hidden" name="costType"  id="costType_value"/>
                                        <div id="costType" data-toggle="Task_onc" class="cost-input Task_onc Task-t Task-on" style="cursor: pointer;">选择费用类型</div>
                                        <div tabindex="0" style="display:none;" class="add_text cost-select-list Pop_up_box Pop_ddowm_box">
                                            <p><a data="8" href="javascript:;">差旅费</a></p>
                                            <p><a data="9" href="javascript:;">招待费</a></p>
                                            <p><a data="10" href="javascript:;">分包费</a></p>
                                            <p><a data="11" href="javascript:;">打印费</a></p>
                                        </div>
                                    </div>

                                </li>
                                <li>
                                    <p class="cost-title">金额</p>
                                    <p class="cost-input"><input type="text" name="amount" id="amount_value" class="width100" maxlength="10" value="" /></p>
                                </li>
                                <li>
                                    <p class="cost-title">开始时间</p>
                                    <p class="cost-input"><input type="text" name="startDate" id="startDate" class="width100 times_in" onclick="WdatePicker();" maxlength="10" value=""  /></p>
                                </li>
                                <li>
                                    <p class="cost-title">结束时间</p>
                                    <p class="cost-input"><input type="text" name="endDate" id="endDate" class="width100 times_in" onclick="WdatePicker();" maxlength="10" value=""  /></p>
                                </li>
                            </ul>
                        </div>
                        <div class="clear"></div>
                        <div style="margin:20px 0px;width: 100%;">
                            <input type="text" name="title" id="title_value" class="h30 pl10" style="border: 1px solid #e4e4e4;display: inline-block;width: 100%" placeholder="输入费用支出内容" />
                        </div>
                        <div class="clear"></div>

                        <div style="margin:20px 0px;width: 100%;" class="xiansuo_add_sc">
                            <input readonly="readonly" placeholder="输入并选择关联项目,按Enter提交" type="text" class="xiansuo_inss pass_on boxes_cu Choice_man shows-pak" data="" value="" style="width:100%;" id="project-id">
                            <!---->
                            <div class="pass_text Pop_up_box Pop_ddowm_box" style="margin-top: 262px;width:94%;margin-left: 15px;">
                                <div class="pass_con" style="width:94%;">
                                    <div class="pass_con_title" style="width:100%;">
                                        <input id="k_approve" type="text" class="pass_search" placeholder="查找项目" style="margin-left: 10px;width: 100%;">
                                    </div>
                                    <ul id="pass_ul" class="pass_con_list mt5 " style="width:100%;">
                                        <li data="1" style="width:100%;">
                                            <a href="javascript:;">绿庭广场综合体建筑方案设计</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="2" style="width:100%;">
                                            <a href="javascript:;">上海新华国际酒店概念方案竞标</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="3" style="width:100%;">
                                            <a href="javascript:;">北京市昌平区沙河镇M-X01地块住宅施工图设计</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="4" style="width:100%;">
                                            <a href="javascript:;">景观模块升级研发</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="5" style="width:100%;">
                                            <a href="javascript:;">大平层住宅主流户型研发</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="6" style="width:100%;">
                                            <a href="javascript:;">LOFT产品研发</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="7" style="width:100%;">
                                            <a href="javascript:;">福州万兴城标识设计</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="8" style="width:100%;">
                                            <a href="javascript:;">遵义市绥阳新天地商业综合体方案设计【示例】</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="9" style="width:100%;">
                                            <a href="javascript:;">绿庭广场综合体建筑方案设计</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="10" style="width:100%;">
                                            <a href="javascript:;">西安幸福里别墅区方案设计</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="11" style="width:100%;">
                                            <a href="javascript:;">长沙公园里一期保障房及公寓室内设计</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="12" style="width:100%;">
                                            <a href="javascript:;">常州水径大型住区规划设计【示例】</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="418" style="width:100%;">
                                            <a href="javascript:;">测试系统</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="419" style="width:100%;">
                                            <a href="javascript:;">122222</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="420" style="width:100%;">
                                            <a href="javascript:;">招标代理项目示例</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="424" style="width:100%;">
                                            <a href="javascript:;">ceshi项目</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="430" style="width:100%;">
                                            <a href="javascript:;">江西瑶湖生态餐厅</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="487" style="width:100%;">
                                            <a href="javascript:;">123</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="489" style="width:100%;">
                                            <a href="javascript:;">123</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="490" style="width:100%;">
                                            <a href="javascript:;">ff</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="491" style="width:100%;">
                                            <a href="javascript:;">25</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="496" style="width:100%;">
                                            <a href="javascript:;">qwe</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="497" style="width:100%;">
                                            <a href="javascript:;">地点</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                        <li data="516" style="width:100%;">
                                            <a href="javascript:;">5554654</a>
                                            <span class="right gouxuan"></span>
                                        </li>
                                    </ul>
                                    <div class="cl"></div>
                                </div>
                            </div>
                            <!---->
                        </div>
                        <div class="clear"></div>

                        <!--canyuren-->
                        <div class="task-B-can left" style="width:488px;margin-top:0px;">
                            <p style="font-weight: bold;color:#808080">参与人</p>
                            <dl class="task-B-can-list" id="task-B-can-list-id">
                                <dt class="Choice_man shows-pak boxes_cu">+
                                    <!---->
                                <div class="pass_text Pop_up_box Pop_ddowm_box">
                                    <div class="pass_con">
                                        <div class="pass_con_title">
                                            <input type="hidden" id="canyurens" value="" />
                                            <input type="text" placeholder="查找成员" class="pass_search" onkeyup="changess(this);" id="member_22" >
                                        </div>
                                        <p>推荐用户</p>
                                        <ul class="pass_con_list mt5 " id="tishi_22">
                                                <li onclick="anfuzhi(this);" data="142" picurl="http://www.xcube.com.cn/images/icon/39.jpg" ><a href="javascript:;">小小谭</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="64" picurl="http://www.xcube.com.cn/images/icon/39.jpg" ><a href="javascript:;">范雅杰</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="17" picurl="http://www.xcube.com.cn/images/icon/2.jpg" ><a href="javascript:;">吴欢欢</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="24" picurl="http://www.xcube.com.cn/images/icon/7.jpg" ><a href="javascript:;">张文文</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="12" picurl="http://www.xcube.com.cn/images/icon/16.jpg" ><a href="javascript:;">吴素花</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="21" picurl="http://www.xcube.com.cn/images/icon/18.jpg" ><a href="javascript:;">何乐为</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="46" picurl="http://www.xcube.com.cn/images/icon/19.jpg" ><a href="javascript:;">test</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="3" picurl="http://www.xcube.com.cn/images/icon/12.jpg" ><a href="javascript:;">朱丽丽</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="465" picurl="http://www.xcube.com.cn/images/icon/3.jpg" ><a href="javascript:;">ll</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="141" picurl="http://www.xcube.com.cn/images/icon/4.jpg" ><a href="javascript:;">Dao</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="57" picurl="http://www.xcube.com.cn/images/icon/10.jpg" ><a href="javascript:;">xuxiangyang</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="16" picurl="http://www.xcube.com.cn/images/icon/12.jpg" ><a href="javascript:;">王亮</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="489" picurl="http://www.xcube.com.cn/images/icon/28.jpg" ><a href="javascript:;">Mickeyyin</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="11" picurl="http://www.xcube.com.cn/images/icon/17.jpg" ><a href="javascript:;">高文龙</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="90" picurl="http://www.xcube.com.cn/images/icon/31.jpg" ><a href="javascript:;">何月</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="20" picurl="http://www.xcube.com.cn/images/icon/12.jpg" ><a href="javascript:;">何美灵</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="32" picurl="http://www.xcube.com.cn/images/icon/20.jpg" ><a href="javascript:;">谭晓华</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="462" picurl="http://www.xcube.com.cn/images/icon/27.jpg" ><a href="javascript:;">lj</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="129" picurl="http://www.xcube.com.cn/images/icon/29.jpg" ><a href="javascript:;">张工</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="486" picurl="http://www.xcube.com.cn/images/icon/11.jpg" ><a href="javascript:;">胡易峰</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="30" picurl="http://www.xcube.com.cn/images/icon/39.jpg" ><a href="javascript:;">周法</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="82" picurl="http://www.xcube.com.cn/images/icon/40.jpg" ><a href="javascript:;">夏宁</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="10" picurl="http://www.xcube.com.cn/images/icon/11.jpg" ><a href="javascript:;">王希诺</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="125" picurl="http://www.xcube.com.cn/images/icon/6.jpg" ><a href="javascript:;">暴风雪</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="485" picurl="http://www.xcube.com.cn//upload/2016/8/17/c04ec9d0-b4b8-4ee7-97d9-a6a53253dd10.jpg" ><a href="javascript:;">Chenyan</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="367" picurl="http://www.xcube.com.cn/images/icon/13.jpg" ><a href="javascript:;">songpeiyue</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="69" picurl="http://www.xcube.com.cn/images/icon/39.jpg" ><a href="javascript:;">TAO</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="19" picurl="http://www.xcube.com.cn/images/icon/14.jpg" ><a href="javascript:;">王津津</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="27" picurl="http://www.xcube.com.cn/images/icon/7.jpg" ><a href="javascript:;">谭晓华</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="15" picurl="http://www.xcube.com.cn/images/icon/12.jpg" ><a href="javascript:;">李舒琪</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="74" picurl="http://www.xcube.com.cn//upload/2015/11/20/9ca6aa40-fb89-49de-8c54-77b86921e7d5.jpg" ><a href="javascript:;">郭俊伶</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="22" picurl="http://www.xcube.com.cn/images/icon/14.jpg" ><a href="javascript:;">刘子宜</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="8" picurl="http://www.xcube.com.cn//upload/2015/10/23/d443f829-0ae4-47cc-b1e8-90c4515a7894.jpg" ><a href="javascript:;">李知远</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="481" picurl="http://www.xcube.com.cn/images/icon/7.jpg" ><a href="javascript:;">王少枫</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="92" picurl="http://www.xcube.com.cn/images/icon/28.jpg" ><a href="javascript:;">刘先生</a> <span class="right gouxuan"></span></li>
                                                <li onclick="anfuzhi(this);" data="51" picurl="http://www.xcube.com.cn/images/icon/30.jpg" ><a href="javascript:;">小小谭</a> <span class="right gouxuan"></span></li>
                                        </ul>
                                        <div class="cl"></div>
                                    </div>
                                </div>
                                <!---->
                                </dt>
                            </dl>
                        </div>

                        <!--canyuren-->
                        <div class="cost-area">
                            <p style="font-weight: bold;color:#808080">费用明细<a class="f_r" href="javascript:;" onclick="addCostDetail();" style="cursor: pointer">+添加</a></p>
                            <table id="tmllist" class="tmllist" width="95%" style="margin-left:10px">
                                <thead class="xm_qx_header">
                                <tr>
                                    <th>用途</th>
                                    <th width="100px">金额</th>
                                    <th width="100px">开始时间</th>
                                    <th width="100px">结束时间</th>
                                    <th width="30px"></th>
                                </tr>
                                </thead>
                                <tbody class="xm_qx_body" id="costDetailList">
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="modal-footer" style="display:block;">
                        <a class="btn modal-cancel" onclick="cancelOutcome()">取消</a>
                        <a class="btn green" onclick="addOutcome();">保存</a>
                    </div>
                    <div class="cl"></div>
                </div>
            </div>
        </form>
    </div>
    <div class="modal" id="domePanel">
        <div data="check" class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <span class="modal-title ">欢迎加入Xcube体验站</span> <span class="modal-close companybtnCancel" style="margin-left: 90%" title="关闭">&times;</span>
                </div>

                <div class="modal-body" style="padding: 15px">
                    <div style="line-height:25px">
                        <p style="font-size:14px">您将有30天的体验时间，截至过期。</p>
                        <p style="font-size:14px">您可以点击左侧导航上方“公司名称”位置，创建已经自己的公司，免费试用</p>
                    </div>
                    <div style="margin: 15px 0;padding-top:15px; border-top:1px solid #f1f1f1;font-size:14px">
                        如有任何问题，可以点击左侧导航下方的“QQ”图标，随时与我们联系。
                    </div>
                </div>
                <div class="modal-footer" style="text-align: left;font-size:14px;">下载《产品使用手册》
                    <a href="http://www.xcube.com.cn/file/scdownload.htm" class="f_r btn green" style="font-size:14px;margin-top: -5px"> 下载 </a>
                </div>
                <div class="cl"></div>
            </div>
        </div>
    </div>
    <a href="javascript:;" style="display: none;" data-toggle="modal" data-target="#domePanel" id="domePanelId" title="dome公司弹框"></a>
    <script type="text/javascript" src="http://static.xcube.com.cn/js/js.js?v=20160106"></script>
    <script type="text/javascript" src="http://static.xcube.com.cn/js/account.js?v=20160106"></script>
    <script type="text/javascript" src="http://static.xcube.com.cn/js/plugins/My97DatePicker/WdatePicker.js?v=20160106"></script>
    <script type="text/javascript" src="http://static.xcube.com.cn/js/plugins/Echart/echarts.js?v=20160106"></script>
    <script type="text/javascript" src="http://static.xcube.com.cn/js/user_panel.js?v=20160106"></script>
    <script type="text/javascript" src="http://static.xcube.com.cn/js/public.js?v=20160106"></script>

    <script type="text/javascript">
    var path = 'http://www.xcube.com.cn/';


    function refulshPanel(){
        window.location.href='http://www.xcube.com.cn/user/panel/index.htm?orgId=5';
    }

    /**
     * 删除参与人
     */
    function removecyr(d){
        $.each($(".task-B-can-list").find("dt"),function(i,u){
            if(typeof($(u).attr("data"))!="undefined"){
                if($(u).attr("data")==d){
                    $(u).remove();
                }
            }
        });
    }

    $(document).on("keyup","#k_approve",function(){
        var $this = $(this);
        var keyword = $this.val();
        if(keyword == ''){
            $("#pass_ul").find("li").show();
        }else{
            $("#pass_ul").find("a").each(function(){
                var pname = $(this).text();
                if(!contains(pname,keyword,true)){
                    $(this).parent().hide();
                }
            })
        }

    });
    /**
     * 取消清空数据（非人力支出）
     */
    function cancelOutcome(){
        document.getElementById('addOutComeForm').reset();
        $("#costType_value").val('');
        $("#costType").text('选择费用类型');
        $.each($("#task-B-can-list-id").find("dt"), function(i,u){
            if($(u).attr("data")!=null && $(u).attr("data")!=''){
                $(u).remove();
            }
        });
        $("#costDetailList").html('');
    }

    /**
     * 异步查询列表
     */
    function addOutcome(){
        if(addOutComeFormValidate()){


        if($("#costType_value").val()=='' || $("#costType_value").val()==null){
            alert('请选择费用类型！');
            return false;
        }
        if($("#amount_value").val()=='' || $("#amount_value").val()==null){
            alert('请填写费用金额！');
            return false;
        }

        var flag = false;
        $.each($(".use_amount_value"),function(i,u){
            if($(u).text()=='' || $(u).text()==null){
                flag = true;
            }
        });
        if(flag){
            alert('请填写费用明细的用途和金额！');
            return false;
        }
        var trs = $("#costDetailList").find("tr");
        var costDetail = '';
        $.each(trs,function(i,u){
            var tr = '';
            $.each($(u).find("span"),function(j,p){
                if(j==$(u).find("span").size()-1){
                    tr=tr+$(p).text();
                }else{
                    tr=tr+$(p).text()+'&&&';
                }
            })
            if(i==trs.size()-1){
                costDetail=costDetail+tr;
            }else{
                costDetail=costDetail+tr+"###";
            }
        });
        //param.push("costDetails":costDetail);

        var peoples = '';
        $.each($(".task-B-can-list").find("dt"),function(i,u){
            if(typeof($(u).attr("data"))!="undefined"){
                peoples = peoples+$(u).attr("data")+",";
            }
        });
        var param={
            projectId:$("#project-id").attr("data"),
            costType:$("#costType_value").val(),
            amount:$("#amount_value").val(),
            startDate:$("#startDate").val(),
            endDate:$("#endDate").val(),
            title:$("#title_value").val(),
            costDetails:costDetail,
            peoples:peoples
        };

        //param.push("peoples":peoples);
        $.ajax({
            url:'http://www.xcube.com.cn/project/account/out_come_dia.htm',
            type:'post',
            dataType:'json',
            data:param,
            cache:false,
            success:function(data) {
                if(data.flag==1){
                    $("#costPanel").hide();
                    //window.location.reload();
                    cancelOutcome();
                    $("#k-s-l-j-1").click();
                }else{
                    alert('添加失败');
                }
            },
            error:function(msg) {
                alert(msg);
            }
        });
        }
    }

    //客户联想
    function changess(obj) {
        var param={
            //projectId:projectId,
            name:$("#member_22").val()
        };
        $.ajax({
            url: "http://www.xcube.com.cn/project/account/all_user.htm",
            type: "post",
            async: false,
            data: param,
            dataType: "text",
            success: function (result) {
                if (result == " ") {
                    $(obj).val("");
                    $("#tishi_22").empty();
                    $(obj).next().css("display", "none");
                } else {
                    $("#tishi_22").empty();
                    $("#tishi_22").html(result);
                    $(obj).next().css("display", "block");
                    $(obj).parent().css("position", "relative");
                }
            }
        });
    }

    /**
     *  删除
     */
    function deleteAssocitate(id){
        $.ajax({
            url:'select_panel.htm',
            type:'post',
            dataType:'json',
            data:{associateId:$("#li_"+id).attr('associate_id')},
            cache:false,
            success:function(data) {
                if(data.flag==1){
                    $("#li_"+id).remove();
                    $.each($(".dashboard-panel-container").find("li"), function(i,u){
                        $(u).show();
                    });
                }
            },
            error:function(msg) {
                alert(msg);
            }
        });

    }

	/**
	 * 面板选择
	 */
	function selectPanel(associateId, panelId, type){
        $.ajax({
            url:'select_panel.htm',
            type:'post',
            dataType:'json',
            data:{associateId:associateId,panelId:panelId,type:type},
            cache:false,
            success:function(data) {
            	if(data.flag==1){
            		var html = '';
            		if(associateId==null || associateId==''){ // 添加
            			html = "<a class=\"cur-btn-add\" onclick=\"selectPanel("+data.id+","+panelId+","+type+")\">已添加</a>";
            		}else{
            			html = "<a class=\"cur-btn-not-add\" onclick=\"selectPanel('',"+panelId+","+type+")\">添加</a>";
            		}
            		$("#panel_"+panelId).html('').html(html);
            	}
            },
            error:function(msg) {
                alert(msg);
            }
        });
	}
	/**
	 * 显示添加弹框
	 */
	function getPanel(){
        $.ajax({
            url:'get_panel.htm',
            type:'post',
            dataType:'text',
            data:{},
            cache:false,
            success:function(data) {
            	$("#dataGrid").empty().html(data);
            },
            error:function(msg) {
                alert(msg);
            }
        });
	}
	
    $(function () {
        //foldEve();//显示隐藏
        checkBoxInput();
    });
    $(document).ready(function (e) {
        $(".dashboard-panel-container").sortable({
            containment: "parent",
            handle: ".header",
            connectWith: ".dashboard-panel-container",
            tolerance: 'pointer',
            forcePlaceholderSize: true,
            opacity: 0.8,
            placeholder: 'ui-state-highlight',
            stop: talbeSort 
        }).disableSelection();
    });
    
    /**
     * 排序
     */
    function talbeSort(){
    	var ids = '';
    	$.each($(".dashboard-panel-container").find(".li-sort"),function(i,u){
    		ids=ids+$(u).attr("associate_id")+",";
    	});
    	
        $.ajax({
            url:'panel_sort.htm',
            type:'post',
            dataType:'json',
            data:{ids:ids},
            cache:false,
            success:function(data) {
            	
            },
            error:function(msg) {
                alert(msg);
            }
        });
    }

    /**
     * 放大功能
     */
    function fangda(val,func_str,wid,flag){
        var li = $(".dashboard-panel-container").find("li");
        var large_url = $("#li_"+val).attr('large_url');
        if(large_url!=null && large_url!=''){
            if(flag){
                $.each(li,function(i,u){
                    $(u).hide();
                });
                $("#li_"+val).show();
                $.ajax({
                    url: path + large_url,
                    type: 'post',
                    dataType: 'text',
                    data: {id: $("#li_"+val).attr('data')},
                    cache: false,
                    success: function (data) {
                        $("#dataGrid_" + val).empty().html(data);
                        if(flag){
                            $("#init_large_"+val).hide();
                            $("#init_small_"+val).show();
                        }else{
                            $.each($(".icon-max"),function(i,u){
                                $(u).show();
                            });
                            $.each($(".icon-min"),function(i,u){
                                $(u).hide();
                            });
                        }
                        eval(func_str + val)();
                    },
                    error: function (msg) {
                    }
                });
            }else{
                $.each(li,function(i,u){
                    $(u).show();
                });
                $.ajax({
                    url: path + $("#li_"+val).attr('url'),
                    type: 'post',
                    dataType: 'text',
                    data: {id: $("#li_"+val).attr('data')},
                    cache: false,
                    success: function (data) {
                        $("#dataGrid_" + val).empty().html(data);
                        if(flag){
                            $("#init_large_"+val).hide();
                            $("#init_small_"+val).show();
                        }else{
                            $.each($(".icon-max"),function(i,u){
                                $(u).show();
                            });
                            $.each($(".icon-min"),function(i,u){
                                $(u).hide();
                            });
                        }
                        eval(func_str + val)();
                    },
                    error: function (msg) {
                    }
                });
            }
            $("#li_"+val).attr("style",wid);
        }else{
            if(flag){
                $.each(li,function(i,u){
                    $(u).hide();
                });
                $("#li_"+val).show();
            }else{
                $.each(li,function(i,u){
                    $(u).show();
                });
                $("#li_"+val).hide();
            }
            $("#li_"+val).attr("style",wid);

            each_ajax($("#li_"+val).attr('url'), $("#li_"+val).attr('data'),func_str, flag);
        }
    }


    //icon-max

    $(function($){
        /*取得所有部件*/
        var li = $(".dashboard-panel-container").find("li");
        //console.log();
        /*异步添加数据*/
        $.each(li,function(i,u){
            var url = $(u).attr('url');
            var _data = $(u).attr('data');
            if(url!=null && url!='') {
                $.ajax({
                    url: path + url,
                    type: 'post',
                    dataType: 'text',
                    data: {id: _data},
                    cache: false,
                    success: function (data) {
                        $("#dataGrid_" + _data).empty().html(data);
                        eval("init_small_" + _data)();
                    },
                    error: function (msg) {
                    }
                });
            }
        });

        init();
    });

    function init(){
        $(".pass_on").each(function() {
            $(this).information('passS', {
                onFa : true,
                eles : 'pass_text',
                parents : 'xiansuo_add_sc',
                off : false

            });
        });

    }

    /**
     * 异步加载数据
     * @param url
     * @param _data
     */
    function each_ajax(url, _data, func_str,fangdaFlag){
        if(url!=null && url!=''){
            $.ajax({
                url:path+url,
                type:'post',
                dataType:'text',
                data:{id:_data},
                cache:false,
                success:function(data){
                    $("#dataGrid_"+_data).empty().html(data);
                    if(fangdaFlag){
                        $("#init_large_"+_data).hide();
                        $("#init_small_"+_data).show();
                    }else{
                        $.each($(".icon-max"),function(i,u){
                            $(u).show();
                        });
                        $.each($(".icon-min"),function(i,u){
                            $(u).hide();
                        });
                      //  $("#init_large_"+_data).show();
                        //$("#init_small_"+_data).hide();
                    }
                    eval(func_str+_data)();
                },
                error:function(msg){}
            });
        }

    }

    /* 快速连接 */
    $(document).on('click.bs.modal.data-api', '[data-toggle="quick_link"]', function (e) {
        var $this = $(this);
        var url = $this.attr("data-url");
        if (url != undefined && url != ""){
            $("#dashboard-panel-container").hide();
            $("#dashboard-link-container").html("数据加载中...");
            $("#dashboard-link-container").show();
            $.ajax(
                    {
                        url:url,
                        cache: false,
                        dataType:"html",
                        success: function(html){
                            $("#dashboard-link-container").show();
                            $("#dashboard-link-container").html(html);
                        }
                    }
            );
        }
    });

    /* 关闭快速连接 */
    $(document).on('click.bs.modal.data-api', '.dashboard-link-container .panel-modal-close', function (e) {
        $("#dashboard-link-container").hide();
        $("#dashboard-panel-container").show();
    });

       function show_quick_link(obj){

       }

    function addOutComeFormValidate(){
        return $('#addOutComeForm').validate({
            rules : {
                'amount':{
                    required:true,
                    number:true,
                    min:0
                },
                'child-cost-name':{
                    required:true,
                    number:true,
                    min:0
                }
            },
            errorPlacement:function(error,element){
                if(element.attr("type")!='radio'){
                    error.css("padding-top",'8px')
                }
                error.css("padding-left",'8px')
                element.parent().append(error);
            }
        }).form();
    }
</script>



        </div>
    </div>
</div>
</div>

<div class="modal" id="addCompanyPanel">
    <div data="check" class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <span class="modal-title ">创建公司</span> <span
                    class="modal-close companybtnCancel" style="margin-left: 90%"
                    title="关闭">&times;</span>
            </div>

            <div class="modal-body" style="padding: 15px">
                <form id="frmCompany">
                    <table cellpadding="0" cellspacing="0" border="0"
                           class="tank_tab_com">
                        <tr>
                            <td class="tank_tab_name">LOGO</td>
                            <td class="tank_tab_int" style="position: relative; "><img
                                    id="comp_logo" name="logo" src="" class="tan_k_text_logo"><input
                                    type="file" name="zip" id="compupload"
                                    onchange="comp_upload(this)" class="picture_file"></td>
                            <input id="comp_logo_hidden" type="hidden"
                                   name="organization.logo" />
                        </tr>
                        <tr>
                            <td class="tank_tab_name">公司名称<span class="colorf00">*</span></td>
                            <td class="tank_tab_int"><input type="text"
                                                            class="tank_tab_input" name="organization.name"></td>
                        </tr>
                        <tr>
                            <td class="tank_tab_name">所属行业<span class="colorf00">*</span></td>
                            <td class="tank_tab_int"><select id="organization_industry"
                                                             name="organization.industry">
                                <option value="1001">建筑设计</option>
                                <option value="1002">城市规划</option>
                                <option value="1003">室内设计</option>
                                <option value="1004">园林景观</option>
                                <option value="1005">互联网与IT服务</option>
                                <option value="1006">管理咨询</option>
                                <option value="1007">创意机构</option>
                                <option value="1008">其他</option>
                            </select></td>
                        </tr>

                        <tr>
                            <td class="tank_tab_name">人员规模</td>
                            <td class="tank_tab_int"><select id="organization_scale"
                                                             name="organization.scale">
                                <option value="1101">1-49人</option>
                                <option value="1102">50-99人</option>
                                <option value="1103">100-299人</option>
                                <option value="1104">100-299人</option>
                                <option value="1105">500-999人</option>
                                <option value="1106">1000人以上</option>
                            </select></td>
                        </tr>
                        <tr style="width: 370px;">
                            <td colspan="2" class="com_xian"></td>
                        </tr>
                        <tr>
                            <td class="tank_tab_name">联系人<span class="colorf00">*</span></td>
                            <td class="tank_tab_int"><input type="text"
                                                            class="tank_tab_input" value="李知远" name="organization.linkman"></td>
                        </tr>
                        <tr>
                            <td class="tank_tab_name">所在部门</td>
                            <td class="tank_tab_int"><input type="text"
                                                            class="tank_tab_input" name="organization.department"></td>
                        </tr>
                        <tr>
                            <td class="tank_tab_name">手机</td>
                            <td class="tank_tab_int"><input type="text"
                                                            class="tank_tab_input" name="organization.phone"></td>
                        </tr>
                        <tr>
                            <td class="tank_tab_name">联系地址</td>
                            <td class="tank_tab_int"><input type="text"
                                                            class="tank_tab_input" name="organization.address"></td>
                        </tr>

                    </table>
                    <div class="cl"></div>
                </form>
            </div>
            <div class="modal-footer" >
                <a class="btn modal-cancel companybtnCancel">取消</a>
                <a class="btn green" id="companybtnSave">创建</a>
            </div>
            <div class="cl"></div>
        </div>
    </div>
</div>

<div class="modal" id="helpPanel">
    <div data="check" class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <span class="modal-title ">欢迎加入Xcube</span> <span class="modal-close companybtnCancel" style="margin-left: 90%" title="关闭">&times;</span>
            </div>

            <div class="modal-body" style="padding: 15px">
                <div style="line-height:25px">
                    <p style="font-size:14px">Xcube是专业的业务管理与协作平台。只需2步即可完成初始设置。</p>
                    <p style="font-size:14px">1. 邀请同事 ：点击“组织与员工管理”</p>
                    <p style="font-size:14px">2. 进行项目设置：点击“项目”</p>
                </div>
                <div style="margin: 15px 0;padding-top:15px; border-top:1px solid #f1f1f1;font-size:14px">
                    如有任何问题，可以点击左侧导航下方的“对话”图标，随时与我们联系。
                </div>
			</div>
			<div class="modal-footer" style="text-align: left;font-size:14px;">下载《产品使用手册》<a href="http://www.xcube.com.cn/xfile/file/handbook/Xcube产品手册.rar" class="f_r btn green" style="font-size:14px;margin-top: -5px"> 下载 </a>
            </div>
            <div class="cl"></div>
        </div>
    </div>
</div>

</body>
<script type="text/javascript" src="http://static.xcube.com.cn/js/js.js?v=2016-8-30 9:24:42"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/plugins/ajaxFileUploader/ajaxfileupload.js?v=1"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/plugins/validation/jquery.validate.js"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/plugins/validation/validate_zh.js?v=1"></script>
<script type="text/javascript" src="http://static.xcube.com.cn/js/jquery.cookie.js?v=1"></script>
<script>
function logout(){
//					$.cookie('user', '', { expires: -1 });
    return true;
}
window.setTimeout(showMessage, 1); //登录后执行一次
//window.setInterval(showMessage, 60000); //之后每一分钟执行一次
function showMessage() {
    $.ajax({
        type: "POST",
        url: "http://www.xcube.com.cn/sysmessage/sumunread.action",
        async: false,
        dataType: "json",
        success: function (str) {
            if (str.sumunread > 0) {
                $("#noMessage").hide();
                $("#haveMessage").show();
                $("#messageCount").text(str.sumunread);
            }
        }
    });
}
$(function () {
    //queryNav();
    /*
    $.ajax({
        type: "POST",
        url: "http://www.xcube.com.cn/organization/ajaxMyOrg.action",
                        async: false,
                        dataType: "html",
                        success: function (str) {
                            $("#orgList").empty();
                            $("#orgList").html(str);
                        }
                    });
                    */

    foldEve();//显示隐藏
    $("#orgList li").on("click", function () {
        location.href = $(this).attr("data-href")
    });

    $('#companybtnSave').bind('click', function () {
        $('#frmCompany').submit();
    });

    $('.companybtnCancel').bind('click', function () {
        validateFrmCompany.resetForm();
        $("#logo1").attr("src", "");
    });


    var validateFrmCompany = $('#frmCompany')
            .validate(
            {
                rules: {
                    'organization.name': {
                        required: true,
                        maxlength: 60
                    },
                    'organization.industry': {
                        required: true
                    },
                    'organization.linkman': {
                        required: true,
                        maxlength: 20
                    },
                    'organization.phone': {
                        isPhone: true
                    },
                    'organization.department': {
                        maxlength: 60
                    }
                },
                submitHandler: function (form) {
                    var param = $("#frmCompany").serialize();
                    $.ajax({
                        url: "http://www.xcube.com.cn/company/create.action",
                        type: "post",
                        dataType: "json",
                        data: param,
                        success: function (result) {
                            if (result.success) {
                                validateFrmCompany.resetForm();
                                remove_tu('tuandui');
                                window.location.href = "http://www.xcube.com.cn/comset/index.htm";
                            }
                        }
                    });
                }
            });

});

//company
function comp_upload(fileObj) {
    var allowExtention = ".jpeg,.jpg,.tiff,.tif,.bmp,.gif,.png"; //允许上传文件的后缀名;
    var extention = fileObj.value.substring(
            fileObj.value.lastIndexOf(".") + 1).toLowerCase();
    var s = "http://www.xcube.com.cn/";
    var browserVersion = window.navigator.userAgent.toUpperCase();
    if (allowExtention.indexOf(extention) > -1) {
        $.ajaxFileUpload({
            url: "http://www.xcube.com.cn/upload.action",
            secureuri: true,
            fileElementId: "compupload",
            dataType: "json",
            success: function (data, status) {
                $("#comp_logo").attr("src", s + data.src);
                $("#comp_logo_hidden").val(data.src);
            }
        })
    } else {
        alert("仅支持" + allowExtention + "为后缀名的文件!");
        fileObj.value = ""; //清空选中文件
        if (browserVersion.indexOf("MSIE") > -1) {
            fileObj.select();
            document.selection.clear();
        }
        fileObj.outerHTML = fileObj.outerHTML;
    }
}
</script>
<script>
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "//hm.baidu.com/hm.js?58e87560f248f9ce08063df18aa003d1";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>


</html>
